/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 上方图片区域 - 共同样式 */
.header-image {
    height: 380px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播图幻灯片 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: opacity 1s ease-in-out;
}

.carousel-slide:first-child {
    display: block;
}

/* 轮播图图片 */
.carousel-image {
    position: absolute;
    top: 120px;
    left: 120px;
    width: 531px;
    height: 90px;
    object-fit: cover;
    z-index: 99;
}

.carousel-slide-1 {
    background-image: url('../banner1.png');
    background-size: cover;
}

.carousel-slide-2 {
    background-image: url('../banner2.png');
    background-size: cover;
}

.carousel-slide-3 {
    background-image: url('../banner3.png');
    background-size: cover;
}

.carousel-slide-4 {
    background-image: url('../banner4.png');
    background-size: cover;
}

/* 轮播图指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}

/* 中间菜单区域 - 共同样式 */
.menu-container {
    background-color: #BD1A2D;
    padding: 0 20px;
}

.main-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    height: 50px;
}

.menu-item {
    position: relative;
    padding: 0 50px;
    line-height: 50px;
    color: white;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: #cc0000;
}

.menu-item.active {
    margin-top: 3px;
    background-color: white;
    color: #BD1A2D;
}

/* 二级菜单样式 */
.submenu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0%;
    transform: translateX(-25%);
    justify-content: center;
    list-style: none;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
}

.submenu-item {
    padding: 10px 20px;
    color: #555555;
    cursor: pointer;
    width: max-content;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    text-align: right;
    font-style: normal;
    border-bottom: 1px solid #eee;
}

.submenu-item:hover {
    background-color: #f5f5f5;
}

.submenu-item:last-child {
    border-bottom: none;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    background-image: url("../bg-top-red.png"), url("../bg-bottom-red.png");
    background-position: left top, right bottom;
    /* 分别控制位置 */
    background-repeat: no-repeat, repeat-x;
    /* 分别控制重复方式 */
    background-size: auto, auto;
}

.content-container .bar {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.4)
}

/* 左侧树形菜单 */
.tree-container {
    width: 250px;
    background-color: #fff;
    padding: 0px;
}

.tree-menu {
    width: 250px;
    list-style: none;
}

.tree-item {
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #555555;
    transition: all 0.3s;
    background-color: #F1F1F1;
}

/* 公众服务节点特殊样式 */
.tree-item[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: white;
}

.tree-item:hover[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: #fff;
}

.tree-item .tree-arrow {
    font-size: 12px;
    color: #555555;
}

.tree-item:hover {
    color: #BD1A2D;
}

.tree-item:hover .tree-arrow {
    color: #BD1A2D;

}

.tree-item.selected {
    color: #BD1A2D;
}

.tree-text {
    flex-grow: 1;
}

.tree-arrow {
    /* 移除动画效果 */
}

/* 下方信息页 - 共同样式 */
.footer-info {
    width: 100%;
    height: 200px;
    background-color: #BD1A2D;
    color: white;
    padding: 30px 0;
    border-top: 1px solid #ddd;
}

.footer-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin: 0px 0 40px 0;
}
/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #7D442E;
    transition: background-color 0.3s;
}

.pagination .page-item {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    margin-right: 8px;
    transition: background-color 0.3s;
}
.pagination .page-item:hover {
    background-color: #fff;
    color:#D61618;
    border-color:#D61618;
}
.pagination-select {
    width: 70px;
}
.custom-select-search {
    width: 100px;
}

.pagination .slide {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.pagination button:hover {
    background-color: #fff;
    color:#D61618;
    border-color:#D61618;
}

.pagination button:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.custom-select {
    position: relative;
    display: inline-block;
}


.custom-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.custom-select .arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    pointer-events: none;
}

#page-info {
    font-weight: bold;
}

#page-input {
    width: 80px;
    padding: 7px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 5px;
}

#page-size {
    width: 70px;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.footer-section {
    display: flex;
    width: 100%;
    justify-content: center;
}

.footer-section p {
    margin-right: 20px;
    font-size: 18px;
}

.footer-section li {
    margin-bottom: 5px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-content .shi-icon {
    width: 45px;
    height: 55px;
    position: absolute;
    top: 70px;
    right: 300px;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}